home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vb-scr1a / mdi.frm < prev    next >
Text File  |  1999-09-10  |  11KB  |  363 lines

  1. VERSION 2.00
  2. Begin MDIForm frmMDI 
  3.    Caption         =   "DSG VB-SCRIPT PAD"
  4.    ClientHeight    =   5415
  5.    ClientLeft      =   2190
  6.    ClientTop       =   2025
  7.    ClientWidth     =   7050
  8.    Height          =   6105
  9.    Left            =   2130
  10.    LinkTopic       =   "MDIForm1"
  11.    Top             =   1395
  12.    Width           =   7170
  13.    Begin PictureBox picToolbar 
  14.       Align           =   1  'Align Top
  15.       BackColor       =   &H8000000F&
  16.       Height          =   375
  17.       Left            =   0
  18.       ScaleHeight     =   345
  19.       ScaleWidth      =   7020
  20.       TabIndex        =   0
  21.       Top             =   0
  22.       Width           =   7050
  23.       Begin CommonDialog CMDialog1 
  24.          CancelError     =   -1  'True
  25.          Filter          =   "Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
  26.          Left            =   5280
  27.          Top             =   240
  28.       End
  29.       Begin Image imgPasteButtonUp 
  30.          Height          =   330
  31.          Left            =   5280
  32.          Top             =   0
  33.          Visible         =   0   'False
  34.          Width           =   375
  35.       End
  36.       Begin Image imgPasteButtonDn 
  37.          Height          =   330
  38.          Left            =   4920
  39.          Top             =   0
  40.          Visible         =   0   'False
  41.          Width           =   375
  42.       End
  43.       Begin Image imgCopyButtonDn 
  44.          Height          =   330
  45.          Left            =   4200
  46.          Top             =   0
  47.          Visible         =   0   'False
  48.          Width           =   375
  49.       End
  50.       Begin Image imgCopyButtonUp 
  51.          Height          =   330
  52.          Left            =   4560
  53.          Top             =   0
  54.          Visible         =   0   'False
  55.          Width           =   375
  56.       End
  57.       Begin Image imgCutButtonDn 
  58.          Height          =   330
  59.          Left            =   3840
  60.          Top             =   0
  61.          Visible         =   0   'False
  62.          Width           =   375
  63.       End
  64.       Begin Image imgCutButtonUp 
  65.          Height          =   330
  66.          Left            =   3480
  67.          Top             =   0
  68.          Visible         =   0   'False
  69.          Width           =   375
  70.       End
  71.       Begin Image imgFileOpenButtonDn 
  72.          Height          =   330
  73.          Left            =   2760
  74.          Top             =   0
  75.          Visible         =   0   'False
  76.          Width           =   360
  77.       End
  78.       Begin Image imgFileOpenButtonUp 
  79.          Height          =   330
  80.          Left            =   3120
  81.          Top             =   0
  82.          Visible         =   0   'False
  83.          Width           =   360
  84.       End
  85.       Begin Image imgFileNewButtonUp 
  86.          Height          =   330
  87.          Left            =   2400
  88.          Top             =   0
  89.          Visible         =   0   'False
  90.          Width           =   360
  91.       End
  92.       Begin Image imgFileNewButtonDn 
  93.          Height          =   330
  94.          Left            =   2040
  95.          Top             =   0
  96.          Visible         =   0   'False
  97.          Width           =   375
  98.       End
  99.       Begin Image imgPasteButton 
  100.          Height          =   330
  101.          Left            =   1560
  102.          Top             =   0
  103.          Width           =   375
  104.       End
  105.       Begin Image imgCopyButton 
  106.          Height          =   330
  107.          Left            =   1200
  108.          Top             =   0
  109.          Width           =   375
  110.       End
  111.       Begin Image imgCutButton 
  112.          Height          =   330
  113.          Left            =   840
  114.          Top             =   0
  115.          Width           =   375
  116.       End
  117.       Begin Image imgFileOpenButton 
  118.          Height          =   330
  119.          Left            =   360
  120.          Top             =   0
  121.          Width           =   360
  122.       End
  123.       Begin Image imgFileNewButton 
  124.          Height          =   330
  125.          Left            =   0
  126.          Top             =   0
  127.          Width           =   360
  128.       End
  129.    End
  130.    Begin Menu mnuFile 
  131.       Caption         =   "&File"
  132.       Begin Menu mnuFNew 
  133.          Caption         =   "&New"
  134.       End
  135.       Begin Menu mnuFOpen 
  136.          Caption         =   "&Open"
  137.       End
  138.       Begin Menu mnuFExit 
  139.          Caption         =   "E&xit"
  140.       End
  141.       Begin Menu mnuRecentFile 
  142.          Caption         =   "-"
  143.          Index           =   0
  144.          Visible         =   0   'False
  145.       End
  146.       Begin Menu mnuRecentFile 
  147.          Caption         =   "RecentFile1"
  148.          Index           =   1
  149.          Visible         =   0   'False
  150.       End
  151.       Begin Menu mnuRecentFile 
  152.          Caption         =   "RecentFile2"
  153.          Index           =   2
  154.          Visible         =   0   'False
  155.       End
  156.       Begin Menu mnuRecentFile 
  157.          Caption         =   "RecentFile3"
  158.          Index           =   3
  159.          Visible         =   0   'False
  160.       End
  161.       Begin Menu mnuRecentFile 
  162.          Caption         =   "RecentFile4"
  163.          Index           =   4
  164.          Visible         =   0   'False
  165.       End
  166.    End
  167.    Begin Menu mnuOptions 
  168.       Caption         =   "&Options"
  169.       Begin Menu mnuOToolbar 
  170.          Caption         =   "&Toolbar"
  171.       End
  172.    End
  173. End
  174.  
  175. Sub imgCopyButton_Click ()
  176.     imgCopyButton.Refresh
  177.     EditCopyProc
  178. End Sub
  179.  
  180. Sub imgCopyButton_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  181.     imgCopyButton.Picture = imgCopyButtonDn.Picture
  182. End Sub
  183.  
  184. Sub imgCopyButton_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  185.     ' If the button is pressed, display the up bitmap if the
  186.     ' mouse is dragged outside the button's area, otherwise
  187.     ' display the up bitmap
  188.     Select Case Button
  189.     Case 1
  190.         If X <= 0 Or X > imgCopyButton.Width Or Y < 0 Or Y > imgCopyButton.Height Then
  191.             imgCopyButton.Picture = imgCopyButtonUp.Picture
  192.         Else
  193.             imgCopyButton.Picture = imgCopyButtonDn.Picture
  194.         End If
  195.     End Select
  196. End Sub
  197.  
  198. Sub imgCopyButton_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  199.     imgCopyButton.Picture = imgCopyButtonUp.Picture
  200. End Sub
  201.  
  202. Sub imgCutButton_Click ()
  203.     imgCutButton.Refresh
  204.     EditCutProc
  205. End Sub
  206.  
  207. Sub imgCutButton_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  208.     imgCutButton.Picture = imgCutButtonDn.Picture
  209. End Sub
  210.  
  211. Sub imgCutButton_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  212.     ' If the button is pressed, display the up bitmap if the
  213.     ' mouse is dragged outside the button's area, otherwise
  214.     ' display the up bitmap
  215.     Select Case Button
  216.     Case 1
  217.         If X <= 0 Or X > imgCutButton.Width Or Y < 0 Or Y > imgCutButton.Height Then
  218.             imgCutButton.Picture = imgCutButtonUp.Picture
  219.         Else
  220.             imgCutButton.Picture = imgCutButtonDn.Picture
  221.         End If
  222.     End Select
  223. End Sub
  224.  
  225. Sub imgCutButton_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  226.     imgCutButton.Picture = imgCutButtonUp.Picture
  227. End Sub
  228.  
  229. Sub imgFileNewButton_Click ()
  230.     imgFileNewButton.Refresh
  231.     FileNew
  232. End Sub
  233.  
  234. Sub imgFileNewButton_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  235.     imgFileNewButton.Picture = imgFileNewButtonDn.Picture
  236. End Sub
  237.  
  238. Sub imgFileNewButton_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  239.     ' If the button is pressed, display the up bitmap if the
  240.     ' mouse is dragged outside the button's area, otherwise
  241.     ' display the up bitmap
  242.     Select Case Button
  243.     Case 1
  244.         If X <= 0 Or X > imgFileNewButton.Width Or Y < 0 Or Y > imgFileNewButton.Height Then
  245.             imgFileNewButton.Picture = imgFileNewButtonUp.Picture
  246.         Else
  247.             imgFileNewButton.Picture = imgFileNewButtonDn.Picture
  248.         End If
  249.     End Select
  250. End Sub
  251.  
  252. Sub imgFileNewButton_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  253.     imgFileNewButton.Picture = imgFileNewButtonUp.Picture
  254. End Sub
  255.  
  256. Sub imgFileOpenButto